mw.loader.implement("ext.articleFeedback",function($){(function($){var tracked='track'===mw.user.bucket('ext.articleFeedback-tracking',mw.config.get('wgArticleFeedbackTracking'));function prefix(key){var version=mw.config.get('wgArticleFeedbackTracking').version||0;return'ext.articleFeedback@'+version+'-'+key;}function isPitchVisible(pitch){return $.cookie(prefix('pitches-'+pitch))!='hide';}function mutePitch(pitch,duration){$.cookie(prefix('pitches-'+pitch),'hide',{'expires':duration,'path':'/'});}function trackClick(id){if(tracked&&$.isFunction($.trackActionWithInfo)){$.trackActionWithInfo(prefix(id),mw.config.get('wgTitle'));}}function trackClickURL(url,id){if(tracked&&$.isFunction($.trackActionURL)){return $.trackActionURL(url,prefix(id));}else{return url;}}var survey=new(function(){var that=this;var $dialog;var $form=$([]);var $message=$([]);var formSource=mw.config.get('wgScript')+'?'+$.param({'title':'Special:SimpleSurvey','survey':'articlerating','raw':1});this.load=function(){
$dialog=$('#articleFeedback-dialog');if($dialog.length===0){$dialog=$('<div id="articleFeedback-dialog" class="loading" />').dialog({'width':600,'height':400,'bgiframe':true,'autoOpen':true,'modal':true,'title':mw.msg('articlefeedback-survey-title'),'close':function(){trackClick('survey-cancel');$dialog.dialog('option','height',400);$form.show();$message.remove();}}).load(formSource,function(){$form=$dialog.find('form');$form.submit(function(){return that.submit();});var $input=$form.find('input[type=submit]');var $button=$('<button type="submit"></button>').text($(this).find('input[type=submit]').val()).button().insertAfter($input);$input.remove();$form.find('#prefswitch-survey-origin').text(mw.config.get('wgTitle'));$button.before($('<div>').addClass('articleFeedback-survey-disclaimer').html(function(){var link=mw.html.element('a',{href:mw.msg('articlefeedback-privacyurl')},mw.msg('articlefeedback-survey-disclaimerlink'));return mw.html.escape(mw.msg(
'articlefeedback-survey-disclaimer')).replace(/\$1/,link);}));$dialog.removeClass('loading');});}$dialog.dialog('open');};this.submit=function(){$dialog=$('#articleFeedback-dialog');$dialog.addClass('loading').find('form').hide();var data={'title':'Special:SimpleSurvey'};$dialog.find(['input[type=text]','input[type=radio]:checked','input[type=checkbox]:checked','input[type=hidden]','textarea'].join(',')).each(function(){var name=$(this).attr('name');if(name!==''){if(name.substr(-2)=='[]'){var trimmedName=name.substr(0,name.length-2);if(typeof data[trimmedName]=='undefined'){data[trimmedName]=[];}data[trimmedName].push($(this).val());}else{data[name]=$(this).val();}}});trackClick('survey-submit-attempt');$.ajax({'url':wgScript,'type':'POST','data':data,'dataType':'html','success':function(data){$dialog.removeClass('loading');var success=$(data).find('.simplesurvey-success').size()>0;that.alert(success?'success':'error');mutePitch('survey',30);trackClick('survey-submit-complete');},
'error':function(XMLHttpRequest,textStatus,errorThrown){$dialog.removeClass('loading');that.alert('error');}});return false;};this.alert=function(message){$message=$('<div />').addClass('articleFeedback-survey-message-'+message).text(mw.msg('articlefeedback-survey-message-'+message)).appendTo($dialog);$dialog.dialog('option','height',$message.height()+100);};})();var config={'ratings':mw.config.get('wgArticleFeedbackRatingTypesFlipped'),'pitches':{'survey':{'weight':0,'condition':function(){return isPitchVisible('survey');},'action':function(){survey.load();trackClick('pitch-survey-accept');return true;},'title':'articlefeedback-pitch-thanks','message':'articlefeedback-pitch-survey-message','body':'articlefeedback-pitch-survey-body','accept':'articlefeedback-pitch-survey-accept','reject':'articlefeedback-pitch-reject'},'join':{'weight':0,'condition':function(){return isPitchVisible('join')&&mw.user.anonymous();},'action':function(){mutePitch('join',1);window.location=trackClickURL(mw.
config.get('wgScript')+'?'+$.param({'title':'Special:UserLogin','type':'signup','returnto':mw.config.get('wgPageName')}),'pitch-join-accept-signup');return false;},'title':'articlefeedback-pitch-thanks','message':'articlefeedback-pitch-join-message','body':'articlefeedback-pitch-join-body','accept':'articlefeedback-pitch-join-accept','reject':'articlefeedback-pitch-reject','altAccept':'articlefeedback-pitch-join-login','altAction':function(){mutePitch('join',1);window.location=trackClickURL(mw.config.get('wgScript')+'?'+$.param({'title':'Special:UserLogin','returnto':mw.config.get('wgPageName')}),'pitch-join-accept-login');return false;}},'edit':{'weight':1,'condition':function(){var restrictions=mw.config.get('wgRestrictionEdit',[]);if(restrictions.length){var groups=mw.config.get('wgUserGroups');for(var i=0;i<restrictions.length;i++){if($.inArray(restrictions[i],groups)<0){return false;}}}return isPitchVisible('edit');},'action':function(){var params={'title':mw.config.get(
'wgPageName'),'action':'edit'};if(tracked){params.clicktrackingsession=$.cookie('clicktracking-session');params.clicktrackingevent=prefix('pitch-edit-save');}window.location=trackClickURL(mw.config.get('wgScript')+'?'+$.param(params),'pitch-edit-accept');return false;},'title':'articlefeedback-pitch-thanks','message':'articlefeedback-pitch-edit-message','body':'articlefeedback-pitch-edit-body','accept':'articlefeedback-pitch-edit-accept','reject':'articlefeedback-pitch-reject'}}};var $aftDiv=$('<div id="mw-articlefeedback"></div>').articleFeedback(config);var legacyskins=['standard','cologneblue','nostalgia'];if($('#catlinks').length&&$.inArray(mw.config.get('skin'),legacyskins)<0){$aftDiv.insertBefore('#catlinks');}else{mw.util.$content.append($aftDiv);}var $tbAft=$('<li id="t-articlefeedback"><a href="#mw-articlefeedback"></a></li>').find('a').text(mw.msg('articlefeedback-form-switch-label')).click(function(){var $box=$('#mw-articlefeedback');var count=0;var interval=setInterval(
function(){$box.animate({'opacity':0.5},100,function(){$box.animate({'opacity':1.0},100);});if(++count>=3){clearInterval(interval);}},200);return true;}).end();$('#p-tb').find('ul').append($tbAft);})(jQuery);;},{"all":"#articleFeedback-dialog{padding:2em;padding-top:1em}.articleFeedback-survey-disclaimer{font-weight:normal; font-style:italic}.articleFeedback-survey-disclaimer a{color:#0645AD; }\n\n/* cache key: enwiki:resourceloader:filter:minify-css:7:dc196b791bc596864c79249f49472c3c */"},{"articlefeedback-pitch-reject":"Maybe later","articlefeedback-pitch-or":"or","articlefeedback-pitch-thanks":"Thanks! Your ratings have been saved.","articlefeedback-pitch-survey-message":"Please take a moment to complete a short survey.","articlefeedback-pitch-survey-body":"","articlefeedback-pitch-survey-accept":"Start survey","articlefeedback-pitch-join-message":"Do you want to create an account?","articlefeedback-pitch-join-body":
"An account will help you track your edits, get involved in discussions, and be a part of the community.","articlefeedback-pitch-join-accept":"Create an account","articlefeedback-pitch-join-login":"Log in","articlefeedback-pitch-edit-message":"Did you know that you can edit this page?","articlefeedback-pitch-edit-body":"","articlefeedback-pitch-edit-accept":"Edit this page","articlefeedback-survey-title":"Please answer a few questions","articlefeedback-survey-message-success":"Thanks for filling out the survey.","articlefeedback-survey-message-error":"An error has occurred.\nPlease try again later.","articlefeedback-survey-disclaimer":"By submitting, you agree to transparency under these $1.","articlefeedback-survey-disclaimerlink":"terms","articlefeedback-privacyurl":"http:\/\/wikimediafoundation.org\/wiki\/Feedback_privacy_statement"});mw.loader.implement("ext.articleFeedback.ratingi18n",function($){;},{},{"articlefeedback-field-trustworthy-label":"Trustworthy",
"articlefeedback-field-trustworthy-tip":"Do you feel this page has sufficient citations and that those citations come from trustworthy sources?","articlefeedback-field-trustworthy-tooltip-1":"Lacks reputable sources","articlefeedback-field-trustworthy-tooltip-2":"Few reputable sources","articlefeedback-field-trustworthy-tooltip-3":"Adequate reputable sources","articlefeedback-field-trustworthy-tooltip-4":"Good reputable sources","articlefeedback-field-trustworthy-tooltip-5":"Great reputable sources","articlefeedback-field-objective-label":"Objective","articlefeedback-field-objective-tip":"Do you feel that this page shows a fair representation of all perspectives on the issue?","articlefeedback-field-objective-tooltip-1":"Heavily biased","articlefeedback-field-objective-tooltip-2":"Moderate bias","articlefeedback-field-objective-tooltip-3":"Minimal bias","articlefeedback-field-objective-tooltip-4":"No obvious bias","articlefeedback-field-objective-tooltip-5":"Completely unbiased",
"articlefeedback-field-complete-label":"Complete","articlefeedback-field-complete-tip":"Do you feel that this page covers the essential topic areas that it should?","articlefeedback-field-complete-tooltip-1":"Missing most information","articlefeedback-field-complete-tooltip-2":"Contains some information","articlefeedback-field-complete-tooltip-3":"Contains key information, but with gaps","articlefeedback-field-complete-tooltip-4":"Contains most key information","articlefeedback-field-complete-tooltip-5":"Comprehensive coverage","articlefeedback-field-wellwritten-label":"Well-written","articlefeedback-field-wellwritten-tip":"Do you feel that this page is well-organized and well-written?","articlefeedback-field-wellwritten-tooltip-1":"Incomprehensible","articlefeedback-field-wellwritten-tooltip-2":"Difficult to understand","articlefeedback-field-wellwritten-tooltip-3":"Adequate clarity","articlefeedback-field-wellwritten-tooltip-4":"Good clarity",
"articlefeedback-field-wellwritten-tooltip-5":"Exceptional clarity"});mw.loader.implement("jquery.appear",function($){(function($){$.fn.appear=function(fn,options){var settings=$.extend({data:undefined,one:true},options);return this.each(function(){var t=$(this);t.appeared=false;if(!fn){t.trigger('appear',settings.data);return;}var w=$(window);var check=function(){if(!t.is(':visible')){t.appeared=false;return;}var a=w.scrollLeft();var b=w.scrollTop();var o=t.offset();var x=o.left;var y=o.top;if(y+t.height()>=b&&y<=b+w.height()&&x+t.width()>=a&&x<=a+w.width()){if(!t.appeared)t.trigger('appear',settings.data);}else{t.appeared=false;}};var modifiedFn=function(){t.appeared=true;if(settings.one){w.unbind('scroll',check);var i=$.inArray(check,$.fn.appear.checks);if(i>=0)$.fn.appear.checks.splice(i,1);}fn.apply(this,arguments);};if(settings.one)t.one('appear',settings.data,modifiedFn);else t.bind('appear',settings.data,modifiedFn);w.scroll(check);$.fn.appear.checks.push(check);(check)();});};
$.extend($.fn.appear,{checks:[],timeout:null,checkAll:function(){var length=$.fn.appear.checks.length;if(length>0)while(length--)($.fn.appear.checks[length])();},run:function(){if($.fn.appear.timeout)clearTimeout($.fn.appear.timeout);$.fn.appear.timeout=setTimeout($.fn.appear.checkAll,20);}});$.each(['append','prepend','after','before','attr','removeAttr','addClass','removeClass','toggleClass','remove','css','show','hide'],function(i,n){var old=$.fn[n];if(old){$.fn[n]=function(){var r=old.apply(this,arguments);$.fn.appear.run();return r;}}});})(jQuery);;},{},{});mw.loader.implement("jquery.articleFeedback",function($){(function($){var tracked='track'===mw.user.bucket('ext.articleFeedback-tracking',mw.config.get('wgArticleFeedbackTracking'));var showOptions='show'===mw.user.bucket('ext.articleFeedback-options',mw.config.get('wgArticleFeedbackOptions'));var loadUserRatings=!mw.user.anonymous()||$.cookie(prefix('rated'))==='true';function prefix(key){var version=mw.config.get(
'wgArticleFeedbackTracking').version||0;return'ext.articleFeedback@'+version+'-'+key;}var updateMailValidityLabel=function(mail,context){var isValid=mw.util.validateEmail(mail),$that=context.$ui.find('.articleFeedback-helpimprove-email');if(isValid===null){$that.removeClass('valid invalid');}else if(isValid){$that.addClass('valid').removeClass('invalid');}else{$that.addClass('invalid').removeClass('valid');}};$.articleFeedback={'tpl':{'ui':
'\
<div class="articleFeedback-panel">\
	<div class="articleFeedback-buffer articleFeedback-ui">\
		<div class="articleFeedback-switch articleFeedback-switch-report articleFeedback-visibleWith-form" rel="report"><html:msg key="report-switch-label" /></div>\
		<div class="articleFeedback-switch articleFeedback-switch-form articleFeedback-visibleWith-report" rel="form"><html:msg key="form-switch-label" /></div>\
		<div class="articleFeedback-title articleFeedback-visibleWith-form"><html:msg key="form-panel-title" /></div>\
		<div class="articleFeedback-title articleFeedback-visibleWith-report"><html:msg key="report-panel-title" /></div>\
		<div class="articleFeedback-explanation articleFeedback-visibleWith-form"><a class="articleFeedback-explanation-link"><html:msg key="form-panel-explanation" /></a></div>\
		<div class="articleFeedback-description articleFeedback-visibleWith-report"><html:msg key="report-panel-description" /></div>\
		<div style="clear:both;"></div>\
		<div class="articleFeedback-ratings"></div>\
		<div style="clear:both;"></div>\
		<div class="articleFeedback-options">\
			<div class="articleFeedback-expertise articleFeedback-visibleWith-form" >\
				<input type="checkbox" value="general" disabled="disabled" /><label class="articleFeedback-expertise-disabled"><html:msg key="form-panel-expertise" /></label>\
				<div class="articleFeedback-expertise-options">\
					<div><input type="checkbox" value="studies" /><label><html:msg key="form-panel-expertise-studies" /></label></div>\
					<div><input type="checkbox" value="profession" /><label><html:msg key="form-panel-expertise-profession" /></label></div>\
					<div><input type="checkbox" value="hobby" /><label><html:msg key="form-panel-expertise-hobby" /></label></div>\
					<div><input type="checkbox" value="other" /><label><html:msg key="form-panel-expertise-other" /></label></div>\
					<div class="articleFeedback-helpimprove">\
						<input type="checkbox" value="helpimprove-email" />\
						<label><html:msg key="form-panel-helpimprove" /></label>\
						<input type="text" placeholder="" class="articleFeedback-helpimprove-email" />\
						<div class="articleFeedback-helpimprove-note"></div>\
					</div>\
				</div>\
			</div>\
			<div style="clear:both;"></div>\
		</div>\
		<button class="articleFeedback-submit articleFeedback-visibleWith-form" type="submit" disabled="disabled"><html:msg key="form-panel-submit" /></button>\
		<div class="articleFeedback-success articleFeedback-visibleWith-form"><span><html:msg key="form-panel-success" /></span></div>\
		<div class="articleFeedback-pending articleFeedback-visibleWith-form"><span><html:msg key="form-panel-pending" /></span></div>\
		<div style="clear:both;"></div>\
		<div class="articleFeedback-notices articleFeedback-visibleWith-form">\
			<div class="articleFeedback-expiry">\
				<div class="articleFeedback-expiry-title"><html:msg key="form-panel-expiry-title" /></div>\
				<div class="articleFeedback-expiry-message"><html:msg key="form-panel-expiry-message" /></div>\
			</div>\
		</div>\
	</div>\
	<div class="articleFeedback-error"><div class="articleFeedback-error-message"><html:msg key="error" /></div></div>\
	<div class="articleFeedback-pitches"></div>\
	<div style="clear:both;"></div>\
</div>\
<div class="articleFeedback-lock"></div>\
		'
,'rating':'\
<div class="articleFeedback-rating">\
	<div class="articleFeedback-label"></div>\
	<input type="hidden" />\
	<div class="articleFeedback-rating-labels articleFeedback-visibleWith-form">\
		<div class="articleFeedback-rating-label" rel="1"></div>\
		<div class="articleFeedback-rating-label" rel="2"></div>\
		<div class="articleFeedback-rating-label" rel="3"></div>\
		<div class="articleFeedback-rating-label" rel="4"></div>\
		<div class="articleFeedback-rating-label" rel="5"></div>\
		<div class="articleFeedback-rating-clear"></div>\
	</div>\
	<div class="articleFeedback-visibleWith-form">\
		<div class="articleFeedback-rating-tooltip"></div>\
	</div>\
	<div class="articleFeedback-rating-average articleFeedback-visibleWith-report"></div>\
	<div class="articleFeedback-rating-meter articleFeedback-visibleWith-report"><div></div></div>\
	<div class="articleFeedback-rating-count articleFeedback-visibleWith-report"></div>\
	<div style="clear:both;"></div>\
</div>\
		','pitch':
'\
<div class="articleFeedback-pitch">\
	<div class="articleFeedback-buffer">\
		<div class="articleFeedback-title"></div>\
		<div class="articleFeedback-pop">\
			<div class="articleFeedback-message"></div>\
			<div class="articleFeedback-body"></div>\
			<button class="articleFeedback-accept"></button>\
			<button class="articleFeedback-reject"></button>\
		</div>\
	</div>\
</div>\
		'},'fn':{'enableSubmission':function(state){var context=this;if(state){clearTimeout(context.successTimeout);context.$ui.find('.articleFeedback-submit').button({'disabled':false}).end().find('.articleFeedback-success span').hide().end().find('.articleFeedback-pending span').fadeIn('fast');}else{context.$ui.find('.articleFeedback-submit').button({'disabled':true}).end().find('.articleFeedback-pending span').hide();}},'updateRating':function(){var $rating=$(this);$rating.find('.articleFeedback-rating-label').removeClass('articleFeedback-rating-label-full');var val=$rating.find('input:hidden').val();var
$label=$rating.find('.articleFeedback-rating-label[rel="'+val+'"]');if($label.length){$label.prevAll('.articleFeedback-rating-label').add($label).addClass('articleFeedback-rating-label-full').end().end().nextAll('.articleFeedback-rating-label').removeClass('articleFeedback-rating-label-full');$rating.find('.articleFeedback-rating-clear').show();}else{$rating.find('.articleFeedback-rating-clear').hide();}},'enableExpertise':function($expertise){$expertise.find('input:checkbox[value=general]').attr('disabled',false).end().find('.articleFeedback-expertise-disabled').removeClass('articleFeedback-expertise-disabled');},'submit':function(){var context=this;if(mw.user.anonymous()){$.cookie(prefix('rated'),'true',{'expires':365,'path':'/'});loadUserRatings=true;}$.articleFeedback.fn.enableSubmission.call(context,false);context.$ui.find('.articleFeedback-lock').show();var data={};for(var key in context.options.ratings){var id=context.options.ratings[key];data['r'+id]=context.$ui.find(
'input[name="r'+id+'"]').val();}var expertise=[];context.$ui.find('.articleFeedback-expertise input:checked').each(function(){expertise.push($(this).val());});data.expertise=expertise.join('|');$.ajax({'url':mw.config.get('wgScriptPath')+'/api.php','type':'POST','dataType':'json','context':context,'data':$.extend(data,{'action':'articlefeedback','format':'json','anontoken':mw.user.id(),'pageid':mw.config.get('wgArticleId'),'revid':mw.config.get('wgCurRevisionId'),'bucket':Number(showOptions)}),'success':function(data){var context=this;if('error'in data){mw.log('ArticleFeedback: Form submission error');mw.log(data.error);context.$ui.find('.articleFeedback-error').show();}else{$.articleFeedback.fn.load.call(context);context.$ui.find('.articleFeedback-lock').hide();}},'error':function(){var context=this;mw.log('Form submission error');context.$ui.find('.articleFeedback-error').show();}});if(context.$ui.find('.articleFeedback-helpimprove-email.valid').length&&!$.isEmpty(context.$ui.find(
'.articleFeedback-helpimprove-email').val())&&context.$ui.find('.articleFeedback-helpimprove input:checked').length){$.ajax({'url':mw.config.get('wgScriptPath')+'/api.php','type':'POST','dataType':'json','context':context,'data':{'email':context.$ui.find('.articleFeedback-helpimprove-email').val(),'info':$.toJSON({'ratingData':data,'pageTitle':mw.config.get('wgTitle'),'pageCategories':mw.config.get('wgCategories')}),'action':'emailcapture','format':'json'},'success':function(data){var context=this;if('error'in data){mw.log('EmailCapture: Form submission error');mw.log(data.error);updateMailValidityLabel('triggererror',context);}else{context.$ui.find('.articleFeedback-helpimprove').hide();$.cookie(prefix('helpimprove-email'),'hide',{'expires':30,'path':'/'});}}});}else{context.$ui.find('.articleFeedback-helpimprove').find('input:checkbox').removeAttr('checked').end().find('.articleFeedback-helpimprove-email').val('').removeClass('valid invalid');}},'executePitch':function(action){var
$pitch=$(this).closest('.articleFeedback-pitch');$pitch.find('.articleFeedback-accept, .articleFeedback-altAccept').button({'disabled':true}).end().find('.articleFeedback-reject').attr('disabled',true);var key=$pitch.attr('rel');if(action.call($(this))){$pitch.fadeOut().find('.articleFeedback-accept, .articleFeedback-altAccept').button({'disabled':false}).end().find('.articleFeedback-reject').attr('disabled',false).end().closest('.articleFeedback-panel').find('.articleFeedback-ui').show();}return false;},'load':function(){var context=this;$.ajax({'url':mw.config.get('wgScriptPath')+'/api.php','type':'GET','dataType':'json','context':context,'cache':!loadUserRatings,'data':{'action':'query','format':'json','list':'articlefeedback','afpageid':mw.config.get('wgArticleId'),'afanontoken':loadUserRatings?mw.user.id():'','afuserrating':Number(loadUserRatings),'maxage':0,'smaxage':loadUserRatings?0:mw.config.get('wgArticleFeedbackSMaxage')},'success':function(data){var context=this;if(!(
'query'in data)||!('articlefeedback'in data.query)||!$.isArray(data.query.articlefeedback)||!data.query.articlefeedback.length){mw.log('ArticleFeedback invalid response error.');context.$ui.find('.articleFeedback-error').show();return;}var feedback=data.query.articlefeedback[0];var $expertise=context.$ui.find('.articleFeedback-expertise');if(typeof feedback.expertise==='string'){var tags=feedback.expertise.split('|');if($.inArray('general',tags)!==-1){$expertise.find('input:checkbox').each(function(){$(this).attr('checked',$.inArray($(this).val(),tags)!==-1);});$expertise.find('.articleFeedback-expertise-options').hide().show();$.articleFeedback.fn.enableExpertise($expertise);}}else{$expertise.find('input:checkbox').attr('checked',false).end().find('.articleFeedback-expertise-options').hide();}var $helpimprove=context.$ui.find('.articleFeedback-helpimprove');var showHelpimprove=true;if($.cookie(prefix('helpimprove-email'))=='hide'||!mw.user.anonymous()){showHelpimprove=false;}if(!
showHelpimprove){$helpimprove.hide();}var ratings={};if(typeof feedback.ratings==='object'&&feedback.ratings!==null){for(var i=0;i<feedback.ratings.length;i++){ratings[feedback.ratings[i].ratingid]=feedback.ratings[i];}}context.$ui.find('.articleFeedback-rating').each(function(){var name=$(this).attr('rel');var rating=name in context.options.ratings&&context.options.ratings[name]in ratings?ratings[context.options.ratings[name]]:null;if(rating!==null&&'total'in rating&&'count'in rating&&rating.total>0){var average=Math.round((rating.total/rating.count)*10)/10;$(this).find('.articleFeedback-rating-average').text(mw.language.convertNumber(average+(average%1===0?'.0':''),false)).end().find('.articleFeedback-rating-meter div').css('width',Math.round(average*21)+'px').end().find('.articleFeedback-rating-count').text(mw.msg('articlefeedback-report-ratings',rating.countall));}else{$(this).find('.articleFeedback-rating-average').html('&nbsp;').end().find('.articleFeedback-rating-meter div').css
('width',0).end().find('.articleFeedback-rating-count').text(mw.msg('articlefeedback-report-empty'));}if(rating!==null&&typeof rating.userrating!=='undefined'){$(this).find('input:hidden').val(rating.userrating);if(rating.userrating>0){$.articleFeedback.fn.enableExpertise($expertise);}}else{$(this).find('input:hidden').val(0);}$.articleFeedback.fn.updateRating.call($(this));});if(typeof feedback.status==='string'&&feedback.status==='expired'){context.$ui.addClass('articleFeedback-expired').find('.articleFeedback-expiry').slideDown('fast');}else{context.$ui.removeClass('articleFeedback-expired').find('.articleFeedback-expiry').slideUp('fast');}context.$ui.find('.articleFeedback-rating-new').removeClass('articleFeedback-rating-new');},'error':function(){var context=this;mw.log('Report loading error');context.$ui.find('.articleFeedback-error').show();}});},'build':function(){var context=this;context.$ui.addClass('articleFeedback').append($.articleFeedback.tpl.ui).find(
'.articleFeedback-ratings').each(function(){for(var key in context.options.ratings){var tipMsg='articlefeedback-field-'+key+'-tip',labelMsg='articlefeedback-field-'+key+'-label';$($.articleFeedback.tpl.rating).attr('rel',key).find('.articleFeedback-label').attr('title',mw.msg(tipMsg)).text(mw.msg(labelMsg)).end().find('.articleFeedback-rating-clear').attr('title',mw.msg('articlefeedback-form-panel-clear')).end().appendTo($(this));}}).end().find('.articleFeedback-explanation-link').attr('href',mw.config.get('wgArticlePath').replace('$1',mw.config.get('wgArticleFeedbackWhatsThisPage'))).end().find('.articleFeedback-pitches').each(function(){for(var key in context.options.pitches){var $pitch=$($.articleFeedback.tpl.pitch).attr('rel',key).find('.articleFeedback-title').text(mw.msg(context.options.pitches[key].title)).end().find('.articleFeedback-message').text(mw.msg(context.options.pitches[key].message)).end().find('.articleFeedback-body').text(mw.msg(context.options.pitches[key].body)).
end().find('.articleFeedback-accept').text(mw.msg(context.options.pitches[key].accept)).click(function(){var $pitch=$(this).closest('.articleFeedback-pitch');var key=$pitch.attr('rel');return $.articleFeedback.fn.executePitch.call($(this),context.options.pitches[key].action);}).button().addClass('ui-button-green').end().find('.articleFeedback-reject').text(mw.msg(context.options.pitches[key].reject)).click(function(){var $pitch=$(this).closest('.articleFeedback-pitch');var key=$pitch.attr('rel');$.cookie(prefix('pitch-'+key),'hide',{'expires':3,'path':'/'});if(tracked&&typeof $.trackAction=='function'){$.trackAction(prefix('pitch-'+key+'-reject'));}$pitch.fadeOut('fast',function(){context.$ui.find('.articleFeedback-ui').show();});}).end().appendTo($(this));if(typeof context.options.pitches[key].altAccept=='string'&&typeof context.options.pitches[key].altAction=='function'){$pitch.find('.articleFeedback-accept').after('<button class="articleFeedback-altAccept"></button>').after($(
'<span class="articleFeedback-pitch-or"></span>').text(mw.msg('articlefeedback-pitch-or'))).end().find('.articleFeedback-altAccept').text(mw.msg(context.options.pitches[key].altAccept)).click(function(){var $pitch=$(this).closest('.articleFeedback-pitch');var key=$pitch.attr('rel');return $.articleFeedback.fn.executePitch.call($(this),context.options.pitches[key].altAction);}).button().addClass('ui-button-green');}}}).end().find('.articleFeedback-helpimprove-note').html(function(){var link=mw.html.element('a',{href:mw.msg('articlefeedback-privacyurl')},mw.msg('articlefeedback-form-panel-helpimprove-privacy'));return mw.html.escape(mw.msg('articlefeedback-form-panel-helpimprove-note')).replace(/\$1/,link);}).end().find('.articleFeedback-helpimprove-email').attr('placeholder',mw.msg('articlefeedback-form-panel-helpimprove-email-placeholder')).placeholder().one('blur',function(){var $el=$(this);updateMailValidityLabel($el.val(),context);$el.keyup(function(){updateMailValidityLabel($el.val
(),context);});}).end().localize({'prefix':'articlefeedback-'}).find('[title]').tipsy({'gravity':'sw','center':false,'fade':true,'delayIn':300,'delayOut':100}).end().find('.articleFeedback-expertise > input:checkbox').change(function(){var $options=context.$ui.find('.articleFeedback-expertise-options');if($(this).is(':checked')){$options.slideDown('fast');}else{$options.slideUp('fast',function(){$options.find('input:checkbox').attr('checked',false);});}}).end().find('.articleFeedback-expertise input:checkbox').each(function(){var id='articleFeedback-expertise-'+$(this).attr('value');$(this).click(function(){$.articleFeedback.fn.enableSubmission.call(context,true);}).attr('id',id).next().attr('for',id);}).end().find('.articleFeedback-helpimprove > input:checkbox').each(function(){var id='articleFeedback-expertise-'+$(this).attr('value');$(this).attr('id',id).next().attr('for',id);}).end().find('.articleFeedback-helpimprove-email').bind('mousedown click',function(e){$(this).closest(
'.articleFeedback-helpimprove').find('input:checkbox').attr('checked',true);}).end().find('.articleFeedback-submit').button().addClass('ui-button-blue').click(function(){$.articleFeedback.fn.submit.call(context);var pitches=[];for(var key in context.options.pitches){var display=$.cookie(prefix('pitch-'+key));if(display!=='hide'&&context.options.pitches[key].condition()){var weight='weight'in context.options.pitches[key]?context.options.pitches[key].weight:1;for(var i=0;i<weight;i++){pitches.push(key);}}}if(pitches.length){var key=pitches[Math.floor(Math.random()*pitches.length)];context.$ui.find('.articleFeedback-pitches').css('width',context.$ui.width()).find('.articleFeedback-pitch[rel="'+key+'"]').fadeIn('fast');context.$ui.find('.articleFeedback-ui').hide();if(tracked&&typeof $.trackAction=='function'){$.trackAction(prefix('pitch-'+key+'-show'));}}else{if(tracked&&typeof $.trackAction=='function'){$.trackAction(prefix('pitch-bypass'));}context.$ui.find(
'.articleFeedback-success span').fadeIn('fast');context.successTimeout=setTimeout(function(){context.$ui.find('.articleFeedback-success span').fadeOut('slow');},5000);}}).end().find('.articleFeedback-visibleWith-report').hide().end().find('.articleFeedback-rating').each(function(){$(this).find('input:hidden').attr('name','r'+context.options.ratings[$(this).attr('rel')]);}).end().find('.articleFeedback-switch').click(function(e){context.$ui.find('.articleFeedback-visibleWith-'+$(this).attr('rel')).show().end().find('.articleFeedback-switch').not($(this)).each(function(){context.$ui.find('.articleFeedback-visibleWith-'+$(this).attr('rel')).hide();});e.preventDefault();return false;}).end().find('.articleFeedback-rating-label').hover(function(){var $el=$(this),$rating=$el.closest('.articleFeedback-rating');$el.addClass('articleFeedback-rating-label-hover-head').prevAll('.articleFeedback-rating-label').addClass('articleFeedback-rating-label-hover-tail');$rating.find(
'.articleFeedback-rating-tooltip').text(mw.msg('articlefeedback-field-'+$rating.attr('rel')+'-tooltip-'+$el.attr('rel'))).show();},function(){var $el=$(this),$rating=$el.closest('.articleFeedback-rating');$el.removeClass('articleFeedback-rating-label-hover-head').prevAll('.articleFeedback-rating-label').removeClass('articleFeedback-rating-label-hover-tail');$rating.closest('.articleFeedback-rating').find('.articleFeedback-rating-tooltip').hide();$.articleFeedback.fn.updateRating.call($rating);}).mousedown(function(){$.articleFeedback.fn.enableSubmission.call(context,true);if(context.$ui.hasClass('articleFeedback-expired')){context.$ui.removeClass('articleFeedback-expired').find('.articleFeedback-rating').addClass('articleFeedback-rating-new');}context.$ui.find('.articleFeedback-expertise').each(function(){$.articleFeedback.fn.enableExpertise($(this));}).end();$(this).closest('.articleFeedback-rating').addClass('articleFeedback-rating-new').find('input:hidden').val($(this).attr('rel')).
end().end().addClass('articleFeedback-rating-label-down').nextAll().removeClass('articleFeedback-rating-label-full').end().parent().find('.articleFeedback-rating-clear').show();}).mouseup(function(){$(this).removeClass('articleFeedback-rating-label-down');}).end().find('.articleFeedback-rating-clear').click(function(){$.articleFeedback.fn.enableSubmission.call(context,true);$(this).hide();var $rating=$(this).closest('.articleFeedback-rating');$rating.find('input:hidden').val(0);$.articleFeedback.fn.updateRating.call($rating);});if(!showOptions){context.$ui.find('.articleFeedback-options').hide();}if(loadUserRatings){context.$ui.appear(function(){$.articleFeedback.fn.load.call(context);});}else{context.$ui.find('.articleFeedback-switch-report').one('click',function(){$.articleFeedback.fn.load.call(context);});}}}};$.fn.articleFeedback=function(){var args=arguments;$(this).each(function(){var context=$(this).data('articleFeedback-context');if(!context){context={'$ui':$(this),'options':{
'ratings':{},'pitches':{}}};if(typeof args[0]==='object'){context=$.extend(true,context,{'options':args[0]});}$.articleFeedback.fn.build.call(context);$(this).data('articleFeedback-context',context);}});return $(this);};})(jQuery);;},{"all":
".articleFeedback{position:relative;display:inline-block;margin-top:1em}@media print{.articleFeedback{display:none}}.articleFeedback-panel{background-color:#f9f9f9;border:1px solid #cccccc;padding-bottom:1px}.articleFeedback-error-message{padding:3em;text-align:center}.articleFeedback-error{display:none;position:absolute;top:0;bottom:0;left:0;right:0;background-color:#f9f9f9;border:1px solid #cccccc;padding-bottom:1px}.articleFeedback-lock{display:none;position:absolute;top:0;left:0;right:0}.articleFeedback-pitches{float:absolute;top:1;left:1;right:1;background-color:#f9f9f9}.articleFeedback-pitch{display:none}.articleFeedback-lock{background-color:transparent}.articleFeedback-pitch-or{margin-left:0.75em;margin-right:0.25em}.articleFeedback-reject{border:none;background-color:transparent;cursor:pointer;color:#0645AD;line-height:1.4em}.articleFeedback-reject:hover{text-decoration:underline}.articleFeedback-pitch .articleFeedback-buffer{padding:0.75em 1em}.articleFeedback-panel{float:left}.articleFeedback-panel .articleFeedback-buffer{padding:0.75em 1em}.articleFeedback-title{font-size:1.4em}.articleFeedback-pitch .articleFeedback-title{font-size:1em;padding-left:28px;line-height:32px;background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/success.png?2012-02-10T22:31:40Z)!ie;background-repeat:no-repeat;background-position:left center;margin-bottom:0.5em}.articleFeedback-pitch .articleFeedback-pop{padding:1em;margin:0;background-color:white;border:solid 1px silver; -webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.articleFeedback-message{margin:0.33em;font-size:1.5em}.articleFeedback-body{margin:0.5em;color:#333333}.articleFeedback-switch{cursor:pointer;color:#0645AD;float:right;line-height:1.4em;background-repeat:no-repeat;background-position:right center;padding-right:22px}.articleFeedback-switch:hover{text-decoration:underline}.articleFeedback-switch-form{background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/form.png?2012-02-10T22:31:40Z)!ie}.articleFeedback-switch-report{background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/report.png?2012-02-10T22:31:40Z)!ie}.articleFeedback-switch-form:hover{background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/form-hover.png?2012-02-10T22:31:40Z)!ie}.articleFeedback-switch-report:hover{background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/report-hover.png?2012-02-10T22:31:40Z)!ie}.articleFeedback-explanation,.articleFeedback-description{float:left;font-weight:bold;margin-bottom:0.75em}.articleFeedback-rating-labels{margin-left:10px}.articleFeedback-rating-label,.articleFeedback-rating-clear{float:left;height:21px;width:21px;background-repeat:no-repeat;background-position:center center;cursor:pointer}.articleFeedback-rating-label{background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/star-empty.png?2012-02-10T22:31:40Z)!ie}.articleFeedback-rating-clear{background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/trash.png?2012-02-10T22:31:40Z)!ie;display:none}.articleFeedback-rating-labels:hover .articleFeedback-rating-clear{background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/trash-hover.png?2012-02-10T22:31:40Z)!ie}.articleFeedback-rating-label.articleFeedback-rating-label-full{background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/star-full.png?2012-02-10T22:31:40Z)!ie}.articleFeedback-expired .articleFeedback-rating-label.articleFeedback-rating-label-full{background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/star-full-expired.png?2012-02-10T22:31:40Z)!ie}.articleFeedback-rating-new .articleFeedback-rating-label.articleFeedback-rating-label-full,.articleFeedback-rating .articleFeedback-rating-label.articleFeedback-rating-label-hover-tail{background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/star-new.png?2012-02-10T22:31:40Z)!ie}.articleFeedback-rating .articleFeedback-rating-label.articleFeedback-rating-label-hover-head{background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/star-new-hover.png?2012-02-10T22:31:40Z)!ie}.articleFeedback-rating-new .articleFeedback-rating-label.articleFeedback-rating-label-down{background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/star-new-down.png?2012-02-10T22:31:40Z)!ie}.articleFeedback-rating-tooltip{float:left;width:12em;margin-left:12px;color:#999999;font-size:0.9em;display:none}.articleFeedback-rating{float:left;width:11em;height:5em;margin-bottom:0.5em}.articleFeedback-rating-average{float:left;margin-right:0.5em;width:2em;text-align:right;font-size:0.8em;line-height:17px}.articleFeedback-rating-meter{float:left;height:17px;width:104px;border:solid 1px #cccccc;border-radius:3px;background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/segment-empty.png?2012-02-10T22:31:40Z)!ie;background-repeat:repeat-x;background-position:center left;overflow:hidden}.articleFeedback-rating-meter div{float:left;height:17px;background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/segment-full.png?2012-02-10T22:31:40Z)!ie;background-repeat:repeat-x;background-position:center left}.articleFeedback-rating-count{float:right;font-size:0.8em;color:#999999;cursor:default;margin-right:1em}.articleFeedback-label{cursor:pointer;padding-left:20px;background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/question.png?2012-02-10T22:31:40Z)!ie;background-repeat:no-repeat;background-position:center left}.articleFeedback-label:hover{background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/question-hover.png?2012-02-10T22:31:40Z)!ie}.articleFeedback-submit{float:right}.articleFeedback-expertise-disabled,.articleFeedback-helpimprove-disabled{color:silver}.articleFeedback-expertise{float:left;margin-bottom:0.5em;margin-top:0.75em}.articleFeedback-expertise input{float:left;margin-bottom:0.5em;clear:both;cursor:pointer}.articleFeedback-expertise label{margin-left:0.5em;margin-bottom:0.5em;float:left;line-height:1.4em;cursor:pointer}.articleFeedback-expertise-options{clear:both;display:none}.articleFeedback-expertise-options input{display:block;clear:both;margin-left:2em}.articleFeedback-expertise-options label{line-height:1.6em}.articleFeedback-expertise-options .articleFeedback-helpimprove-email{width:20em;margin-left:4em;margin-top:0.25em;cursor:text}.articleFeedback-helpimprove-note{margin-left:4em;font-size:0.8em;clear:both}.articleFeedback-helpimprove-email.valid{background-color:#C0FFC0}.articleFeedback-helpimprove-email.invalid{background-color:#FFC0C0}.articleFeedback-pending,.articleFeedback-success{float:right}.articleFeedback-pending span,.articleFeedback-success span{display:none;padding:12px 12px 12px 28px;font-size:0.8em;line-height:3.6em;background-repeat:no-repeat;background-position:center left;color:green}.articleFeedback-pending span{background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/attention.png?2012-02-10T22:31:40Z)!ie}.articleFeedback-success span{background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/success.png?2012-02-10T22:31:40Z)!ie}.articleFeedback-expiry{display:none;border:solid 1px orange;background-color:white;padding:0.5em}.articleFeedback-expiry-title{font-size:1.2em;padding-left:28px;background-image:url();background-image:url(//bits.wikimedia.org/w/extensions-1.19/ArticleFeedback/modules/jquery.articleFeedback/images/alert.png?2012-02-10T22:31:40Z)!ie;background-repeat:no-repeat;background-position:center left}.articleFeedback-expiry-message{padding-left:28px;color:#777777}\n\n/* cache key: enwiki:resourceloader:filter:minify-css:7:765bb27c9012ebe2e0acd97f1a3c885a */"
},{"articlefeedback-error":"An error has occurred. Please try again later.","articlefeedback-form-switch-label":"Rate this page","articlefeedback-form-panel-title":"Rate this page","articlefeedback-form-panel-explanation":"What's this?","articlefeedback-form-panel-explanation-link":"Wikipedia:Article Feedback Tool","articlefeedback-form-panel-clear":"Remove this rating","articlefeedback-form-panel-expertise":"I am highly knowledgeable about this topic (optional)","articlefeedback-form-panel-expertise-studies":"I have a relevant college\/university degree","articlefeedback-form-panel-expertise-profession":"It is part of my profession","articlefeedback-form-panel-expertise-hobby":"It is a deep personal passion","articlefeedback-form-panel-expertise-other":"The source of my knowledge is not listed here","articlefeedback-form-panel-helpimprove":"I would like to help improve Wikipedia, send me an e-mail (optional)","articlefeedback-form-panel-helpimprove-note":
"We will send you a confirmation e-mail. We will not share your e-mail address with outside parties as per our $1.","articlefeedback-form-panel-helpimprove-email-placeholder":"email@example.org","articlefeedback-form-panel-helpimprove-privacy":"feedback privacy statement","articlefeedback-form-panel-submit":"Submit ratings","articlefeedback-form-panel-success":"Saved successfully","articlefeedback-form-panel-pending":"Your ratings have not been submitted yet","articlefeedback-form-panel-expiry-title":"Your ratings have expired","articlefeedback-form-panel-expiry-message":"Please reevaluate this page and submit new ratings.","articlefeedback-report-switch-label":"View page ratings","articlefeedback-report-panel-title":"Page ratings","articlefeedback-report-panel-description":"Current average ratings.","articlefeedback-report-empty":"No ratings","articlefeedback-report-ratings":"$1 ratings","articlefeedback-privacyurl":"http:\/\/wikimediafoundation.org\/wiki\/Feedback_privacy_statement"}
);mw.loader.implement("jquery.localize",function($){(function($){$.fn.localize=function(options){options=$.extend({'prefix':'','keys':{},'params':{}},options);function msg(key){var args=key in options.params?options.params[key]:[];args.unshift(options.prefix+(key in options.keys?options.keys[key]:key));return mw.msg.apply(mw,args);};return $(this).find('msg,html\\:msg').each(function(){var $el=$(this);$el.text(msg($el.attr('key'))).replaceWith($el.html());}).end().find('[title-msg]').each(function(){var $el=$(this);$el.attr('title',msg($el.attr('title-msg'))).removeAttr('title-msg');}).end().find('[alt-msg]').each(function(){var $el=$(this);$el.attr('alt',msg($el.attr('alt-msg'))).removeAttr('alt-msg');}).end();};document.createElement('msg');})(jQuery);;},{},{});mw.loader.implement("jquery.tipsy",function($){(function($){function maybeCall(thing,ctx){return(typeof thing=='function')?(thing.call(ctx)):thing;};function fixTitle($ele){if($ele.attr('title')||typeof($ele.attr(
'original-title'))!='string'){$ele.attr('original-title',$ele.attr('title')||'').removeAttr('title');}}function Tipsy(element,options){this.$element=$(element);this.options=options;this.enabled=true;fixTitle(this.$element);}Tipsy.prototype={show:function(){var title=this.getTitle();if(title&&this.enabled){var $tip=this.tip();$tip.find('.tipsy-inner')[this.options.html?'html':'text'](title);$tip[0].className='tipsy';$tip.remove().css({top:0,left:0,visibility:'hidden',display:'block'}).appendTo(document.body);var pos=$.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight});var actualWidth=$tip[0].offsetWidth,actualHeight=$tip[0].offsetHeight;var gravity=(typeof this.options.gravity=='function')?this.options.gravity.call(this.$element[0]):this.options.gravity;var tp;switch(gravity.charAt(0)){case'n':tp={top:pos.top+pos.height+this.options.offset,left:pos.left+pos.width/2-actualWidth/2};break;case's':tp={top:pos.top-actualHeight-this.
options.offset,left:pos.left+pos.width/2-actualWidth/2};break;case'e':tp={top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth-this.options.offset};break;case'w':tp={top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width+this.options.offset};break;}if(gravity.length==2){if(gravity.charAt(1)=='w'){if(this.options.center){tp.left=pos.left+pos.width/2-15;}else{tp.left=pos.left;}}else{if(this.options.center){tp.left=pos.left+pos.width/2-actualWidth+15;}else{tp.left=pos.left+pos.width;}}}$tip.css(tp).addClass('tipsy-'+gravity);if(this.options.className){$tip.addClass(maybeCall(this.options.className,this.$element[0]));}if(this.options.fade){$tip.stop().css({opacity:0,display:'block',visibility:'visible'}).animate({opacity:this.options.opacity},100);}else{$tip.css({visibility:'visible',opacity:this.options.opacity});}}},hide:function(){if(this.options.fade){this.tip().stop().fadeOut(100,function(){$(this).remove();});}else{this.tip().remove();}},getTitle:function(){var
title,$e=this.$element,o=this.options;fixTitle($e);var title,o=this.options;if(typeof o.title=='string'){title=$e.attr(o.title=='title'?'original-title':o.title);}else if(typeof o.title=='function'){title=o.title.call($e[0]);}title=(''+title).replace(/(^\s*|\s*$)/,"");return title||o.fallback;},tip:function(){if(!this.$tip){this.$tip=$('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"/></div>');}return this.$tip;},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null;}},enable:function(){this.enabled=true;},disable:function(){this.enabled=false;},toggleEnabled:function(){this.enabled=!this.enabled;}};$.fn.tipsy=function(options){if(options===true){return this.data('tipsy');}else if(typeof options=='string'){return this.data('tipsy')[options]();}options=$.extend({},$.fn.tipsy.defaults,options);function get(ele){var tipsy=$.data(ele,'tipsy');if(!tipsy){tipsy=new Tipsy(ele,$.fn.tipsy.elementOptions(
ele,options));$.data(ele,'tipsy',tipsy);}return tipsy;}function enter(){var tipsy=get(this);tipsy.hoverState='in';if(options.delayIn==0){tipsy.show();}else{setTimeout(function(){if(tipsy.hoverState=='in')tipsy.show();},options.delayIn);}};function leave(){var tipsy=get(this);tipsy.hoverState='out';if(options.delayOut==0){tipsy.hide();}else{setTimeout(function(){if(tipsy.hoverState=='out')tipsy.hide();},options.delayOut);}};if(!options.live)this.each(function(){get(this);});if(options.trigger!='manual'){var binder=options.live?'live':'bind',eventIn=options.trigger=='hover'?'mouseenter':'focus',eventOut=options.trigger=='hover'?'mouseleave':'blur';this[binder](eventIn,enter)[binder](eventOut,leave);}return this;};$.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:true,fallback:'',gravity:'n',center:true,html:false,live:false,offset:0,opacity:1.0,title:'title',trigger:'hover'};$.fn.tipsy.elementOptions=function(ele,options){return $.metadata?$.extend({},options,$(ele).metadata(
)):options;};$.fn.tipsy.autoNS=function(){return $(this).offset().top>($(document).scrollTop()+$(window).height()/2)?'s':'n';};$.fn.tipsy.autoWE=function(){return $(this).offset().left>($(document).scrollLeft()+$(window).width()/2)?'e':'w';};})(jQuery);;},{"all":
".tipsy{padding:5px;position:absolute;z-index:100000;cursor:default}.tipsy-inner{padding:5px 8px 4px 8px; background-color:#ffffff;border:solid 1px #a7d7f9;color:black;max-width:15em;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px; }.tipsy-arrow{position:absolute;background:url() no-repeat top left;background:url(//en.wikipedia.org/w/resources-1.19/resources/jquery.tipsy/images/tipsy.png?2012-02-10T22:30:00Z) no-repeat top left!ie;width:11px;height:6px} .tipsy-n .tipsy-arrow{top:0px;left:50%;margin-left:-5px} .tipsy-nw .tipsy-arrow{top:1px;left:10px} .tipsy-ne .tipsy-arrow{top:1px;right:10px} .tipsy-s .tipsy-arrow{bottom:0px;left:50%;margin-left:-5px;background-position:bottom left} .tipsy-sw .tipsy-arrow{bottom:0px;left:10px;background-position:bottom left} .tipsy-se .tipsy-arrow{bottom:0px;right:10px;background-position:bottom left} .tipsy-e .tipsy-arrow{top:50%;margin-top:-5px;right:1px;width:5px;height:11px;background-position:top right} .tipsy-w .tipsy-arrow{top:50%;margin-top:-5px;left:0px;width:6px;height:11px}\n\n/* cache key: enwiki:resourceloader:filter:minify-css:7:ca687e0ebbb6d2e416f37cda89758acf */"
},{});mw.loader.implement("mediawiki.language",function($){(function($,mw){mw.language={'procPLURAL':function(template){if(template.title&&template.parameters&&mw.language.convertPlural){if(template.parameters.length===0){return'';}var count=mw.language.convertNumber(template.title,true);return mw.language.convertPlural(parseInt(count,10),template.parameters);}if(template.parameters[0]){return template.parameters[0];}return'';},'convertPlural':function(count,forms){if(!forms||forms.length===0){return'';}return(parseInt(count,10)==1)?forms[0]:forms[1];},'preConvertPlural':function(forms,count){while(forms.length<count){forms.push(forms[forms.length-1]);}return forms;},'convertNumber':function(num,integer){if(!mw.language.digitTransformTable){return num;}var transformTable=mw.language.digitTransformTable;if(integer){if(parseInt(num,10)==num){return num;}var tmp=[];for(var i in transformTable){tmp[transformTable[i]]=i;}transformTable=tmp;}var numberString=''+num;var convertedNumber='';for
(var i=0;i<numberString.length;i++){if(transformTable[numberString[i]]){convertedNumber+=transformTable[numberString[i]];}else{convertedNumber+=numberString[i];}}return integer?parseInt(convertedNumber,10):convertedNumber;},'gender':function(gender,forms){if(!forms||forms.length===0){return'';}forms=mw.language.preConvertPlural(forms,2);if(gender==='male'){return forms[0];}if(gender==='female'){return forms[1];}return(forms.length===3)?forms[2]:forms[0];},'digitTransformTable':null};})(jQuery,mediaWiki);;},{},{});

/* cache key: enwiki:resourceloader:filter:minify-js:7:9a12c2c798202416ddb19e2ee520a879 */